import java.util.Scanner;

public class CaIculator {
    double a,b;

    public CaIculator(){
        a = 0;
        b = 0;
    }
    public CaIculator(double a,double b){
        this.a = a;
        this.b = b;
    }

    public void setA(double a) {
        this.a = a;
    }

    public void setB(double b) {
        this.b = b;
    }
    public double add(){
        return a + b;
    }
    public double minus(){
        return a - b;
    }
    public double multply(){
        return  a * b;
    }
    public double divide(){
        return a / b;
    }

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        double a = scanner.nextDouble();
        double b = scanner.nextDouble();
        CaIculator caIculator = new CaIculator(a,b);
        System.out.println(caIculator.add());
        System.out.println(caIculator.minus());
        System.out.println(caIculator.multply());
        System.out.println(caIculator.divide());

    }
}
